<%@ page language="java" import="java.util.*,java.net.URLDecoder" pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String loginName="";
String uid="";
Cookie[] cookArr = request.getCookies();
if(cookArr!=null){
	for(Cookie c:cookArr){
		if(c.getName().equals("LOGINNAME")){
			loginName = URLDecoder.decode(c.getValue(),"UTF-8");
		}
		if(c.getName().equals("UID")){
			uid = c.getValue();
		}
		c.getValue();
	}
}
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5shiv.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<![endif]-->
<link rel="stylesheet" type="text/css" href="../static/h-ui/css/H-ui.min.css" />
<link rel="stylesheet" type="text/css" href="../static/h-ui.admin/css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css" href="../lib/Hui-iconfont/1.0.8/iconfont.css" />
<link rel="stylesheet" type="text/css" href="../static/h-ui.admin/skin/default/skin.css" id="skin" />
<link rel="stylesheet" type="text/css" href="../static/h-ui.admin/css/style.css" />

<title>用户信息修改审核</title>
<!-- 分页样式 -->
	<style type="text/css">
		.box-footer{
			width:300px;
			height:30px;
			margin-left: 1240px; 
		}
		 .box-footer ul>li{
			float: left;
			margin-left: 25px;
		} 
		.form-group{
		margin-left: 80px;
		}
	</style>
</head>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 用户信息修改审核<span class="c-gray en">&gt;</span> 审核列表 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="page-container">
	<div class="mt-20">
		<table class="table table-border table-bordered table-hover table-bg table-sort">
			<thead>
				<tr class="text-c">
					<th width="60">用户名</th>
					<th width="80">电话号码</th>
					<th width="60">用户类型</th>
					<th width="90">头像更换的图片</th>
					<th width="60">用户请求</th>
					<th width="100">操作</th>
				</tr>
			</thead>
			<tbody>
				<c:if test="${list!=null }">
    				<c:forEach items="${list}" var="user">
						<tr class="text-c">
							<td>${user.uname}</td>
							<td>${user.phonenumber}</td>
							<c:if test="${user.type==0}">
								<td>买家</td>
							</c:if>
							<c:if test="${user.type==1}">
								<td>卖家</td>
							</c:if>
							
							<c:if test="${user.newpicture!=null }">
								<td><img src="${user.newpicture }" width="100px" height="100px"/></td>
							</c:if>
							
		     				<c:if test="${user.utype==0}">
		     					<td>申请修改头像  </td>
		     				</c:if>
		     				
							<td class="td-manage">
								<a  href="<%=basePath%>admin/agreementUser.do?uid=${user.uid }" style="text-decoration:none"><span class="label label-success radius">同意修改</a>
								<a href="<%=basePath%>admin/againRequest3.do?uid=${user.uid }" style="text-decoration:none"><span class="label label-success radius">重新申请</a>
							</td>
						</tr>
					</c:forEach>
				</c:if>
			</tbody>
		</table>
		
		<!--  分页-->
		<div class="box-footer">
			<div class="pull-left">
				<div class="form-group">
					总共${page.pages} 页，共${page.total} 条数据
				</div>
			</div>

			<div class="box-tools pull-right">
				<ul class="pagination">
					<%--在超链接中访问js函数，必须加前缀：javascript--%>
					<li><a href="<%=basePath%>admin/userRequest.do?page=${page.firstPage}&utype=0">首页</a></li>
					<li><a href="<%=basePath%>admin/userRequest.do?page=${page.prePage}&utype=0">上一页</a></li>

					<li><a href="<%=basePath%>admin/userRequest.do?page=${page.nextPage}&utype=0">下一页</a></li>
					<li><a href="<%=basePath%>admin/userRequest.do?page=${page.lastPage}&utype=0">尾页</a></li>
				</ul>
			</div>
		</div>
	</div>
</div>

<script type="text/javascript" src="../lib/jquery/1.9.1/jquery.min.js"></script> 
<script type="text/javascript" src="../lib/layer/2.4/layer.js"></script>  
<script type="text/javascript" src="../static/h-ui/js/H-ui.min.js"></script> 
<script type="text/javascript" src="../static/h-ui.admin/js/H-ui.admin.js"></script> <!--/_footer /作为公共模版分离出去-->

<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="../lib/My97DatePicker/4.8/WdatePicker.js"></script> 
<script type="text/javascript" src="../lib/datatables/1.10.0/jquery.dataTables.min.js"></script> 
<script type="text/javascript" src="../lib/laypage/1.2/laypage.js"></script>
<script type="text/javascript">
$(function(){
	$('.table-sort').dataTable({
		"aaSorting": [[ 1, "desc" ]],//默认第几个排序
		"bStateSave": true,//状态保存
		"aoColumnDefs": [
		  //{"bVisible": false, "aTargets": [ 3 ]} //控制列的隐藏显示
		  {"orderable":false,"aTargets":[0,2,4]}// 制定列不参与排序
		]
	});

});
</script>
</body>
</html>